package com.qys.livesMall.shop.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.shop.modal.dto.task.app.SellTaskShopPageDTO;
import com.qys.livesMall.shop.modal.dto.task.sys.SysShopSellTaskPageDTO;
import com.qys.livesMall.shop.modal.entity.ShopSellTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.shop.modal.vo.task.app.SellTaskShopPageVo;
import com.qys.livesMall.shop.modal.vo.task.sys.SysShopSellTaskPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 店铺带货任务表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-06-15
 */
public interface ShopSellTaskMapper extends BaseMapper<ShopSellTask> {

    Page<SellTaskShopPageVo> listByAppPage(Page<SellTaskShopPageVo> page, @Param("query") SellTaskShopPageDTO query);

    Page<SysShopSellTaskPageVo> listByAppSys(Page<SysShopSellTaskPageVo> page, @Param("query") SysShopSellTaskPageDTO queryDTO);

    List<ShopSellTask> getByGoodsId(@Param("goodsId") Long goodsId,@Param("shopId") Long shopId);
}
